import { Global, Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { DeptService } from './dept.service'
import { SysDeptEntity } from './entities/dept.entity'

@Global()
@Module({
  imports: [TypeOrmModule.forFeature([SysDeptEntity])],
  providers: [DeptService],
  exports: [DeptService]
})
export class DeptModule {}
